<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>公益币管理</title>
    <link rel="stylesheet" type="text/css" href="<?=base_url()?>public/css/style.css">
    <script type="text/javascript" src="<?=base_url()?>public/js/jq.1.12.4.js"></script>
    <script type="text/javascript" src="<?=base_url()?>public/js/js.js"></script>
<style>
.person p span {
		width: 22% !important;
	}
</style>
<style type="text/css">
#page{height:32px;line-height:32px;margin-top:15px;margin-bottom:15px;text-align:left;position:relative;bottom:0;}
#page a{background:#fff;border-radius:5px;float:left;display:block;padding:0 12px;line-height:32px;border:1px solid #ddd;margin-right:5px;font-size:12px;font-weight:bold;color:#444;}
#page a:hover{background:#f6f6f6}
#page a.cur{color:red;background:#444;border:1px solid #444;color:#fff;}
#page a.noborder{border:none;margin:0 2px;}
</style>
<script>
$(function(){
	if($('tr').length == '11'){
		$('#page').css('buttom','0');
	}else{
		$('#page').css('buttom','');
	}
})
</script>
</head>
<body>
	<!-- 头部 -->
    <?php echo $menu ?>
    <!-- 主体 -->
    <div class="main clearfix">
        <?php echo $left ?>

		<div class="content">
			<div class="con">
				<div class="bikuang">
                	<div class="right_title"><span>公益收益中心&nbsp;&nbsp; -<span style="color:#1d3e00; margin:0;">&nbsp;&nbsp;公益币转账</span></span></div>
                    <div style="border-bottom:1px solid #c0cbb0; width:100%; margin:0 auto;box-shadow: -3px 3px 6px 0px rgba( 29, 62, 0, 0.2 ); padding-bottom:20px;">      
					<div class="person">
						<?php echo form_open('wallet_manage/transfer'); ?>
                    	<p><span>公益币</span><input type="text" name="send_uid" value="<?php echo $public_money; ?>" readonly="readonly"></p>
                        <p><span>对方公益账号</span><input type="text" name="target_user_account" class='nam'></p>
                        <p><span>数量</span><input type="text" name="number" class='num'></p>
                        <p><span>二级密码</span><input type="password" name="spwd" class='pasword'><b class='tishi-js'></b></p>
                        <p class="btn"><input style="width:30%; background:#254e01; color:white; margin-left:40%; margin-top:40px; margin-left:40%;position:relative;" type="submit" value="确认转账" id='js-btn' /></p>
                        </form>
                    </div>
                    </div>
                    <div class="right_title"><span>公益收益中心&nbsp;&nbsp; -<span style="color:#1d3e00; margin:0;">&nbsp;&nbsp;公益币明细</span></span></div>
                    <div class="person3">
                    	<table cellpadding="0" cellspacing="0">
                        	<tr>
                            	<th>公益币编号</th>
                                <th>公益账号</th>
                                <th>姓名</th>
                                <th>时间</th>
                                <th>收支记录</th>
                            </tr>
                            <?php 
                            foreach ($details_list as $rs){
                            ?>
                            <tr>
                            	<?php 
                            	$this->load->model ( 'user_model' );
                            	$result = $this->user_model->get_uesr_info ( $rs['account2'] );
                            	?>
                            	<td><?php echo $rs['bianhao'];?></td>
                                <td><?php echo $rs['account2'];?></td>
                                <td><?php echo $result['user_name'];?></td>
                                <td><?php echo date("Y-m-d H:i:s",$rs['create_time']);?></td>
                                <td><?php if($rs['transfer_type']==1){echo "支出";}else{echo "收入";}?>&nbsp;<?php echo $rs['number'];?></td>
                            </tr>
                            <?php }?>
                        </table>
                        <?php echo $multi;?>
                    </div>
                    
                    </div>
				</div>
			</div>
		</div>
	</div>
	<div style='position:fixed;width:18%;height:220px;background:rgba(133,220,75,0.7);color:white;top:40%;left:43%;text-align:center;line-height:220px;display:none;' class='tishi' >dwadwadaw</div>
<script type="text/javascript">
	$(function(){
		$('#js-btn').on('mousedown',function(){
									$('#js-btn').css('top','5px');
									console.log(1)
								})
								$('#js-btn').on('mouseup',function(){
									$('#js-btn').css('top','0px');
									console.log(2)
								})
		$('.tishi').on('click',function(){
			$('.tishi').css('display','none');
	})
	});
	$('#js-btn').on('click',function(){
		
		console.log(1)
		var arr = new Array();
		arr['target_user_account']= $('.nam').val();
		arr['number']=$('.num').val();
		arr['spwd']=$('.pasword').val();
		//alert('<?php echo base_url(); ?>wallet_manage/transfer');
		//$.ajax({

			//type: 'POST',

			//url: '<?php echo base_url(); ?>wallet_manage/transfer' ,
			
			//data : arr,

			//success: function(data){
			//	if(data=='1'){
			//		alert('成功')；
			//	}else{
			//		alert(data);
			//	}
			//} 

//});

	});
</script>
</body>
</html>